import axios from '@/libs/api.request'

export class ProvidentFundPayableBillApi {
  // 公积金应付账单导入
  static importProvidentFundPayableBill (params) {
    return axios.request({
      url: '/ProvidentFundPayableBill/ImportProvidentFundPayableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取公积金应付账单列表数据
  static getProvidentFundPayableBillList (params) {
    return axios.request({
      url: '/ProvidentFundPayableBill/GetProvidentFundPayableBillList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出公积金应付账单
  static exportProvidentFundPayableBill (params) {
    return axios.request({
      url: '/ProvidentFundPayableBill/ExportProvidentFundPayableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出实付单-U8
  static exportPayment (params) {
    return axios.request({
      url: '/ProvidentFundPayableBill/ExportPayment',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除
  static delete (params) {
    return axios.request({
      url: '/ProvidentFundPayableBill/Delete',
      method: 'delete',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 校验并获取当前工资总额
  static checkConfirmPay (params) {
    return axios.request({
      url: '/ProvidentFundPayableBill/CheckConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 工资付款确认
  static confirmPay (params) {
    return axios.request({
      url: '/ProvidentFundPayableBill/ConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
